import Vue from 'vue'
import Vuex, { Store } from 'vuex'

Vue.use(Vuex)

const store = new Store({
    state:{
        userLedgerKeyword:'',//用户台账搜索关键字
        equipLedgerKeyword:'',
        u_id: 1001
    },
    mutations: {
        EQUIP_SEARCH_VALUE(state,key){
        state.equipLedgerKeyword = key
        },
        USER_SEARCH_VALUE(state,key){
        state.userLedgerKeyword = key
        },
    }
})
export default store